#include <fstream>
#include <cmath>

long long gcd(long long a, long long b, long long& x, long long& y)
{
	if (a == 0)
	{
		x = 0;
		y = 1;
		return b;
	}
	long long x_, y_;
	long long g = gcd(b % a, a, x_, y_);
	x = y_ - (b / a) * x_;
	y = x_;
	return g;
}
int main()
{
	std::ifstream is("in.txt");
	std::ofstream os("out.txt");
	long long a, b, c;
	long long x, y;
	while (is >> a >> b >> c)
	{
		if ((a == 0) && (b == 0))
		{
			if (c == 0)
			{
				os << "0 0" << "\n";
			}
			else
			{
				os << "<none>\n";
			}
			continue;
		}
		long long g = gcd(a, b, x, y);
		if (c % g != 0)
		{
			os << "<none>\n";
		}
		else
		{
			os << x * (c / g) << " " << y * (c / g) << "\n";
		}
	}
	return 0;
}
